Security News
cURL Project and Go Security Teams Reject CVSS as Broken
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
cf-component-link
Advanced tools
Cloudflare Link Component
Installation with yarn is recommended
$ yarn add cf-component-link
import React from 'react';
import { Link } from 'cf-component-link';
class LinkComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
isActive: false
};
}
handleClick() {
console.log('handleClick!');
}
handleExpandedClick() {
this.setState({ isActive: !this.state.isActive });
}
render() {
return (
<div>
<p>
Create a <code>Link</code> with a <code>to</code> prop:
</p>
<Link to="/">Link to /</Link>
<p>
Alternatively you can pass an <code>onClick</code> handler:
</p>
<Link onClick={this.handleClick.bind(this)}>Link to something</Link>
<p>{`Note: This will give it a role="button"`}</p>
<p>
All additional props will be added to the <code>Link</code> element:
</p>
<Link to="/foo">Link to /foo</Link>
<p>You can create an expandable link by giving it an expandable prop</p>
<Link
onClick={this.handleExpandedClick.bind(this)}
isActive={this.state.isActive}
expandable
>
Link to /foo
</Link>
</div>
);
}
}
export default LinkComponent;
FAQs
Cloudflare Link Component
The npm package cf-component-link receives a total of 1 weekly downloads. As such, cf-component-link popularity was classified as not popular.
We found that cf-component-link demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.